<div id="content">
	<?php
	if(isset($_SESSION['user']) && $_SESSION['user']=='1')
	{
		echo '<div id="ajout"><a title="Ajout article"  href="addArticle.php">+ Ajouter un article</a></div>';
	}
	?>
	
	<?php foreach($articles as $article) { ?>
	<div class="mini_post">
		<div class="left_mini_post">
			<a href="article.php?id=<?php echo $article->art_id; ?>" title="<?php echo fixEncoding($article->art_title); ?>">
				<img title="<?php echo fixEncoding($article->art_title); ?>" src="<?php echo fixEncoding($article->art_url_photo); ?>"/>
			</a>		
		</div>
		<div class="right_mini_post">
			<h1><a href="article.php?id=<?php echo $article->art_id; ?>" title="<?php echo fixEncoding($article->art_title); ?>"><?php echo fixEncoding($article->art_title); ?></a></h1>
			<div class="tiret"></div>
			<p><?php echo tronque(fixEncoding($article->art_content), 260); ?></p>
			<a href="article.php?id=<?php echo $article->art_id; ?>" title="<?php echo fixEncoding($article->art_title); ?>" class="en_savoir_plus">lire la suite</a>
			<br/>
			<?php 
				if(isset($_SESSION['user']) && $_SESSION['user']=='1')
				{
					echo '<a title="Supprimer article" id="supprimer" href="deleteArticle.php?id='.$article->art_id.'">X Supprimer cet article</a><br/>';
					echo '<a title="Modifier article" id="modifier" href="modifyArticle.php?id='.$article->art_id.'">Modifier cet article</a>';
				}
			?>
		</div>
	</div>
	<?php } ?>
	
	
	<div class="clear"></div>
</div>